package com.sxt.mars.commontest;

import java.util.HashMap;
import java.util.Map;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.sxt.mars.pojo.AAdmins;
import com.sxt.mars.serviceImp.AAdminsServiceImpl;
import com.sxt.mars.util.LoggerUtil;

import mars_car.BaseTest;

public class JunitTest extends BaseTest
{
	//初始化
	@Autowired
	private AAdminsServiceImpl adminsService;
	
	public void info(){
		super.info();
		this.adminsService=(AAdminsServiceImpl) this.ac.getBean("userService");
	}
	
	@Test
	public void selectAdmins(){
		Map<String,Object> condMap=new HashMap<String,Object>();
		condMap.put("email",1);
		/*condMap.put("status",0);*/
	    AAdmins admins = this.adminsService.findAdminsService(condMap);
	    LoggerUtil.LOGGER.info("admins:email:{},password:{},phone{},name:{},identity:{},address:{},"
	    		+ "sex:{},status:{},createTime:{},updateTime{}",admins.getEmail(),admins.getPassword(),admins.getPhone()
	    		,admins.getName(),admins.getIdentity(),admins.getAddress(),admins.getSex(),admins.getCreateTime(),admins.getUpdateTime());

	}
	
}
